import java.io.File;
import java.io.IOException;

public class Demo2 {

    public static void main(String[] args) throws IOException {
        File path = new File("./test.txt");

        System.out.println(path.exists());
        System.out.println(path.isDirectory());
        System.out.println(path.isFile());
        System.out.println(path.createNewFile());
    }
}
